package com.ym521.activitystack.core.stack

import androidx.fragment.app.FragmentActivity

/**
 *@author Ym
 *E-mail: 2435970206@qq.com
 *createTime:2024/3/10
 *explain:
 *
 */
interface ActivityStackManager {

    fun stackClear(): ActivityStackManager

    fun push(fragmentActivity: FragmentActivity)

    fun pushTop(fragmentActivity: FragmentActivity)

    fun pop(fragmentActivity: FragmentActivity)

    fun <T:FragmentActivity> pop(clazz: Class<T>)

    fun pop()

    fun back()

    fun popAll()

    fun current(): FragmentActivity

}